package com.Lyy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor

public class Teacher {
    private String TeacherName;
    private Course[] TeacherCourse;
    private List<Student> TeacherStudent;


    @Override
    public String toString() {
        return "Teacher{" +
                "TeacherName='" + TeacherName + '\'' +
                ", TeacherCourse=" + Arrays.toString(TeacherCourse) +
                ", TeacherStudent=" + TeacherStudent +
                '}';
    }

    public void tsc(){
        System.out.println(this.TeacherName+"\nhave\n"+this.TeacherCourse+"\nand\n"+this.TeacherStudent);
    }
}
